from docx import Document
from docx.shared import Inches

class DocumentProcessor:
    def __init__(self):
        self.document = Document()

    def add_image(self, image_path):
        # 添加图片并保持原始尺寸
        self.document.add_picture(image_path)

    def save_document(self, file_path):
        # 保存文档
        self.document.save(file_path)